<?php

return [
    'official_account' => [
        'app_id' => env('official_account.app_id'),
        'secret' => env('official_account.secret'),
        'response_type' => 'array',
        'aes_key' => 'xPm9PeinpFVcdn12x2nPycuSbiJyyvcP7lVMSHuBTRr'
    ],
    'mini_program' => [
        'app_id' => env('mini_program.app_id'),
        'secret' => env('mini_program.secret'),

        // 下面为可选项
        // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
        'response_type' => 'array',

        'log' => [
            'level' => 'debug',
            'file' => __DIR__.'/wechat.log',
        ],
    ],
    'payment' => [
        // 必要配置
        'app_id' => env('payment.app_id'),
        'mch_id' => env('payment.mac_id'),
        'key'    => env('payment.api_key'),   // API 密钥
    ]
];